<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <title>Show</title>
</head>

<body>
    <?php
    include "conn.php";

    $title = $_POST['title'];
    $id = $_POST['id'];
    $author = $_POST['author'];
    $content = $_POST['content'];

    $address = $_SERVER['REMOTE_ADDR'];

    $sql = "UPDATE `message` SET `title` = '$title', `author` = '$author', `content` = '$content', 
        `ip` = '$address', `ptime` = now() WHERE `id` = '$id'";
    $is = $conn->query($sql);

    if ($is) {
        header("location:show.php");
    }
    echo "false";
    ?>
</body>

</html>